<HTML><HEAD><TITLE>min_of_heap(+Heap, ?Key, ?Datum)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(heaps)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>min_of_heap(+Heap, ?Key, ?Datum)</H1>
returns the Key-Datum pair at the top of the heap
<H2>Description</H2>

    returns the Key-Datum pair at the top of the heap (which is of
    course the pair with the smallest Key), but does not remove it
    from the heap.  It fails if the heap is empty.
    

</BODY></HTML>
